/*
* redux 最核心的管理模块
* */

import {createStore, applyMiddleware} from 'redux'
import thunk from 'redux-thunk'
import {composeWithDevTools} from 'redux-devtools-extension'

import reducers from './reducers'


// 向外暴露store对象
export default createStore(
    reducers,
    applyMiddleware(thunk)   // 应用上中间件
)